// const Express = require('./index')
const Express = require('express')
const app = new Express()

app.use((req, res, next) => {
    console.log('中间件1-开始')
    next();
    console.log('中间件1-结束')
});

app.use((req, res, next) => {
    console.log('中间件2-开始')
    next();
    console.log('中间件2-结束')
});

app.use((req, res, next) => {
    console.log('中间件3-开始')
    next();
    console.log('中间件3-结束')
});

app.get('/', (req, res) => {
    res.end('Hello, World!');
});

app.listen(3001, () => {
    console.log('Server running on port 3001');
});
